package com.moguhoutai.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.moguhoutai.dao.CityMapper;
import com.moguhoutai.model.City;
import com.moguhoutai.util.BusinessException;

@Service
public class CityBiz {
    @Resource
	private CityMapper cMapperdao;
	
    public List<City> findAll() throws BusinessException{
		try {
			return cMapperdao.findAll();
		} catch (Exception e) {
			e.printStackTrace();
			throw new BusinessException("E10B05");
		}
	}
	
}
